package com.digitaleye.dpslite;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import com.downpayment.dps.R;


public class AboutThisAppActivity extends Activity {
	
	
	@Override
	public void onConfigurationChanged(Configuration newConfig){
		super.onConfigurationChanged(newConfig);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	}
	
	
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.setContentView(R.layout.about_this_app_layout);
		
		Utility.adjustBackground(this);
		
		
//		TextView ToSText = (TextView) findViewById(R.id.ToSText);
//		
//		ToSText.setOnClickListener(new OnClickListener(){
//
//			@Override
//			public void onClick(View v) {
//				
//				Intent intent = new Intent(AboutThisAppActivity.this, ToSActivity.class);
//				startActivity(intent);
//			}
//			
//		});
		
		TextView privacyPolicyText = (TextView) findViewById(R.id.privacyPolicyText);
		
		privacyPolicyText.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				
				Intent intent = new Intent(AboutThisAppActivity.this, PrivacyPolicyActivity.class);
				startActivity(intent);
			}
			
		});
		
		
	}

}
